package com.cloudkinto.dao;

import com.cloudkinto.entity.RechargeRecordDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 * @author ding
 * @since 2020-06-10
 */
@Mapper
public interface RechargeRecordDao extends BaseMapper<RechargeRecordDo> {
    Double getRechargeAmount(Long companyId, Date startDate, Date endDate);
    List<RechargeRecordDo> getRechargeList(Long companyId, Date startDate, Date endDate);


    RechargeRecordDo selectByIdForUpdate(Long id);
}
